import turtle as t
name = "codemao"
password = "123456"
print("请输入账号和密码")
while True:
    name1 = input("账号：")
    password1 = input("密码：")
    if name1 == name and password1 == password:
        print("登陆成功")
        break
    else:
        print("您的账号或者密码输入错误，请重新输入")
while True:
    get = input('''
    ***主菜单***
    0 ：画五角星
    1 ：画正方形
    2 : 画正三角形
    3 ：退出
    ''')
    if get == "0":
        for i in range(5):
            t.forward(200)
            t.left(144)
    elif get == "1":
        for i in range(4):
            t.forward(200)
            t.left(90)
    elif get == "2":
        for i in range(3):
            t.forward(200)
            t.left(120)
    elif get == "3":
        break
    else:
        print("请输入正确的命令")
